package code.example.service.admin;

import javax.annotation.Resource;

import org.springframework.web.context.support.StaticWebApplicationContext;

import com.googlecode.cswish.Config;
import com.googlecode.cswish.struts.spring.ObjectFactory;

/**
 * Manage spring
 * 	 
 * @author jerry.feng Date: 2008-10-24
 */
public class SpringContainer {

	@Resource
	private ObjectFactory objectFactory;
	
	@Resource
	private Config config;
	
	public boolean reload() {
		objectFactory.setApplicationContext(new StaticWebApplicationContext());
		return true;
	}
}